package yunwo.cn.yzstation.other;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ImageView;

/**
 * Created by lao on 2017/9/4.
 */

public class Myimageview extends ImageView {
    public Myimageview(Context context) {
        super(context);
    }

    public Myimageview(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public Myimageview(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

/*
    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        switch (ev.getAction()) {
            case MotionEvent.ACTION_MOVE:
                Log.d("ccccc子view", "dispatchTouchEvent:::::ACTION_MOVE");
//                getParent().requestDisallowInterceptTouchEvent(false);

                break;
            case MotionEvent.ACTION_DOWN:
                Log.d("ccccc子view", "dispatchTouchEvent::::::ACTION_DOWN");
                break;
        }
        return super.dispatchTouchEvent(ev);
    }
    @Override
    public boolean onTouchEvent(MotionEvent event) {

        switch (event.getAction()) {
            case MotionEvent.ACTION_MOVE:
                Log.d("ccccc子view", "ACTION_MOVE");
//                getParent().requestDisallowInterceptTouchEvent(false);

                break;
            case MotionEvent.ACTION_DOWN:
                Log.d("ccccc子view", "ACTION_DOWN");
                break;
        }
        return super.onTouchEvent(event);
    }*/

}
